# 使用 Eclipse Temurin 的 OpenJDK 21 JRE 版本（轻量运行时）
FROM eclipse-temurin:21-jre-alpine

# 后续指令不变
COPY target/lgy-auto-aipan.jar lgy-auto-aipan.jar
COPY agent /usr/local/agent

ENV SW_AGENT_NAME "lgy-auto-aipan"

ENTRYPOINT ["java","-javaagent:/usr/local/agent/skywalking-agent.jar","-jar","/lgy-auto-aipan.jar"]